<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\admin\User\BackGroundController;
use App\Http\Controllers\admin\Patient\ReservationController;

Route::get('/', function () {
    return view('welcome');
});
//后台主页面
Route::prefix('user')->group(function (){
    Route::get('back_admin',[BackGroundController::class,'backAdmin']);
});
//后台预约挂号页面
Route::prefix('reservation')->group(function (){
    //预约挂号展示
    Route::get('reservation_show_action',[ReservationController::class,'reservationShowAction']);
    //预约添加
    Route::get('reservation_add',[ReservationController::class,'reservationAdd']);
    //执行添加
    Route::post('reservation_create',[ReservationController::class,'reservationCreate']);
    Route::get('health_article',[ReservationController::class,'healthArticle']);
    //详情
    Route::get('particulars_list{id}',[ReservationController::class,'particularsList']);
});

